package com.zmn.oms.dubbo.dto.zmn.order.user;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 用户订单查询条件
 * @author: LuJia
 * @version: v1.0
 * @since: 2020-5-25 09:39:17
 **/
@Data
public class UserOrderQueryDIO implements Serializable {

    /**
     * 用户Id
     */
    @NotNull
    private Long userId;

    /**
     * 分页条数
     */
    @Min(value = 1)
    @Max(value = 100)
    private Integer pageSize;

    /**
     * 多少页
     */
    @NotNull
    private Integer pageIndex;

    /**
     * 排序字段
     */
    private String orderField;

    /**
     *  2 倒序 1 正序
     */
    private Integer defaultOrder = 2;
}
